/**
 * www.lifexx.com Inc.
 * Copyright (c) 2014 All Rights Reserved.
 */
package net.mikoo.seals.boss.biz.mapper.boss;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.boss.model.PartyRole;

/**
 *                       
 * @Filename PartyRoleMapper.java
 *
 * @Description 
 *
 * @Version 1.0
 *
 * @Author chenzx
 *
 * @Email chenzx1206@163.com
 *       
 * @History
 *<li>Author: chenzx</li>
 *<li>Date: 2015年1月29日</li>
 *<li>Version: 1.0</li>
 *<li>Content: create</li>
 *
 */
@MapperScan
public interface PartyRoleMapper {
	/**
	 * 添加
	 * 
	 * @param partyRole
	 * @return
	 */
	public Integer insert(PartyRole partyRole);
	
	/**
	 * 删除当事人角色
	 * 
	 * @param userLevelId
	 * @return 删除结果
	 */
	public Integer deleteByPartyId(Long partyId);
	
	/**
	 * 根据当事人编号查询角色
	 * 
	 * @param partyId
	 * @return  查询结果
	 */
	public List<PartyRole> selectByPartyId(Long partyId);
	
	public List<PartyRole> selectAll();
}
